﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TfsGiggle.Core.Parsers
{
    public interface IParserFactory
    {
        /// <summary>
        /// May return an IParser if it knows a parser that can handle this fileextension
        /// </summary>
        /// <param name="fileExtension"></param>
        /// <returns></returns>
        IParser GetParser(string fileExtension);

        /// <summary>
        /// Precedence is given to higher numbers
        /// </summary>
        int Priority { get; }
    }
}
